﻿using System.Windows;
namespace StockholmsStad.Windows.UI.Controls
{
    /// <summary>
    /// Interaction logic for RadioButtonListControl.xaml
    /// </summary>
    public partial class RadioButtonListControl
    {
        public static DependencyProperty SelectedValueProperty =
            DependencyProperty.Register("SelectedValueProperty", typeof(object), typeof(RadioButtonListControl));

        public object SelectedValue
        {
            get
            {
                return (object)GetValue(SelectedValueProperty);
            }
            set
            {
                SetValue(SelectedValueProperty, value);
            }
        }

        public RadioButtonListControl()
        {
            InitializeComponent();
            
            DataContextChanged += new DependencyPropertyChangedEventHandler(RadioButtonListControl_DataContextChanged);
        }

        void RadioButtonListControl_DataContextChanged(object sender, DependencyPropertyChangedEventArgs e)
        {
            // Set selected value? 
        }
    }
}
